<?php
/**
 * User.php
 *
 * @copyright   2023 thingsworld.com.cn - All Rights Reserved
 * @link        http://thingsworld.com.cn/
 * @author      stiffer.chen <chenl@thingsworld.com.cn>
 * @created     2023-06-05 14:29:46
 * @modified    2023-06-05 14:29:46
 *
 */

namespace App\Models\Project;

use App\Models\BaseModel;
use App\Models\UserModel;

class User extends BaseModel
{
    protected $table = 'project_user';

    public $timestamps = false;

    protected $fillable = [
        'project_id',
        'user_id'
    ];

    public function user()
    {
        return $this->belongsTo(UserModel::class);
    }
}